package tw.asap.plus.entity.request;

import tw.asap.plus.entity.response.Address;

/**
 * Created by Yax.
 * Date: 15/11/14
 * Time: 下午2:29
 * Description:
 */
public class AddAddressRequest extends CommonRequestParams{

    /**
     * name : 联系人
     * sex : 姓别 0: 男, 1: 女
     * mobile : 联系人手机号
     * area : 地区
     * address : 详细地址
     * is_default : 是否默认 0: 非默认, 1: 默认
     */

    public String name;
    public String sex;
    public String mobile;
    public String area;
    public String address;
    public String is_default;

    public AddAddressRequest(Address address){
        this.address = address.getAddress();
        this.area = address.getArea();
        this.is_default = address.getIs_default();
        this.sex = address.getSex();
        this.mobile = address.getMobile();
        this.name = address.getName();
    }
}
